#!/usr/bin/python
#-*-coding:utf-8-*-

import sys
from lib import *
from lib.pressureFunc import *

if __name__ == '__main__':
    cpu = {}
    cpu["data"] = DataCenter()
    name = 'aoTest8'
    password = '123456'
    startNum = 0
    endNum = 0
    
    if sys.argv[1]:
        name = sys.argv[1]
    if sys.argv[2]:
        password = sys.argv[2]   
    if sys.argv[3]:
        startNum = int(sys.argv[3])
    if sys.argv[4]:
        endNum = int(sys.argv[4])
    if sys.argv[5]:
        groupNum = int(sys.argv[5])
    log.info("startNum:"+str(startNum)+" endNum:"+str(endNum))
    PT_getOnlineNumMax(cpu, name, password, startNum, endNum, groupNum)
    log.info("end to excute the function of PT_getOnlineNumMax...")
